//
// RegularFile.h
// Usage: VFS regular file object
// CreateDate: 2009-05-19
// Author: MaJiuyue
//
#ifndef _REGULARFILE_H_
#define _REGULARFILE_H_

#include "File.h"

class RegularFile : public File
{
public:
	RegularFile(const char *name, u32 inode, size_t length, FileSystem *fs);

	virtual void open();
	virtual void close();
	virtual int read(int off, size_t size, addr_t buf);
	virtual int write(int off, size_t size, addr_t buf);

public:
	static RegularFile * ReadFromFS();
};

#endif

